<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>盒子学习</title>
	<style type="text/css">

        *{
        	margin:0;
        	padding: 0;
        }

        .xiezi{

        	width: 100px;
        	height: 100px;
        	background-color: #45AB35;
        }

        .xiehe{
        	margin-left: 100px;
        	margin-top: 100px;
        	width: 100px;
        	height: 100px;
        	padding: 10px;
        	background: #4AA1EF;
        	border: 5px solid red;
        }


        .xiezi2{

            width: 100px;
            height: 100px;
            background-color: #45AB35;
        }

        .xiehe2{
            margin-left: 100px;
            margin-top: 100px;
            width: 130px;
            height: 130px;
            padding: 10px;
            background: #4AA1EF;
            border: 5px solid red;
            box-sizing:border-box;
        }

	</style>
</head>
<body>

    <p>标准盒子模型---会被撑大</p>
	
	<div class="xiehe">
	
          <div class="xiezi">
          	
          </div>

	</div>

    <br/>
    <hr/>
    <p>怪异盒子模型---限定了大小</p>

    <div class="xiehe2">
    
          <div class="xiezi2">
            
          </div>

    </div>


</body>
</html>